package org.benjamin.lending.service;

import org.benjamin.lending.domain.entity.MemberInfo;
import org.benjamin.lending.domain.entity.RechargeLog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.math.BigDecimal;

/**
 * Created by xywen on 2017/5/22.
 */
public interface RechargeService {

    RechargeLog createRechargeLog(MemberInfo memberInfo, String bank, BigDecimal amount, BigDecimal fee, String createIp);

    void rechargeSuccess(Integer id, String createIp);

    void rechargeFail(Integer id, String createIp);

    Page<RechargeLog> findLoggerPage(String username, PageRequest pageRequest);
}
